@import "../variables";
@import "../mixins/clearfix";
@import "../mixins/pesudo-position";

@import "common/sign";
@import "common/record";

.loan {
  &__steps {
    padding: 50px 290px 0;
  }

  .stepanel {
    margin-bottom: 40px;
    padding: 80px 80px 40px;
  }
}

.app {
  .stepanel__arrow {
    left: 322px;
  }

  .flatabs {
    margin: 0 85px 53px 95px;
  }

  &__order {
    position: relative;
    margin-bottom: 60px;
    padding-left: 57px;
    padding-right: 2px;
    @include clearfix();

    .order__box {
      position: relative;
      float: left;
      width: 464px;
      margin-right: 20px;
      padding: 32px 56px 40px 51px;
      box-shadow: 0 0 5px rgba(74, 144, 226, .21);
      vertical-align: bottom;

      &:before, &:after {
        position: absolute;
        content: '';
      }

      &:before {
        width: 44px;
        height: 4px;
        background-color: #F7BA5B;
        top: 0;
        left: 29px;
      }

      &:after {
        width: 12px;
        height: 12px;
        background-color: $primary;
        right: 0;
        bottom: 19px;
      }

      .form__label {
        color: #6F6F6F;
      }

      [type="submit"] {
        margin-top: 11px;
      }
    }

    .order__card {
      position: absolute;
      display: inline-block;
      box-shadow: 0 0 5px rgba(74, 144, 226, .21);
      bottom: 0;

      &:after {
        position: absolute;
        content: '';
        width: 21px;
        height: 18px;
        left: 0;
        bottom: 16px;
        background: url('~images/right-arrow.png') center 100% no-repeat;
      }

      .card {

        &__hd {
          margin: 0;
          padding: 11px 10px 8px;
          text-align: center;
          font-size: 15px;
          line-height: 1.4;
          color: #fff;
          background-color: $primary;
        }

        &__bd {
          padding: 10px 60px 2px 81px;
          background-color: #fff;
        }

        &__line {
          margin: 0;
          padding: 8px 0 10px;
          min-width: 353px;
          color: #444F5A;
          font-size: 14px;
          overflow: hidden;
          
          + .card__line {
            border-top: 2px dotted #ACBEE6;
          }

          .line {

            &__title {
              float: left;
              min-width: 70px;
              margin-right: 10px;
              font-weight: 400;
              text-align: right;
              line-height: 19px;
            }

            &__content {
              overflow: hidden;
              line-height: 19px;
            }
          }
        }
      }

    }
  }

  &__loan {
    padding-left: 157px;
    padding-right: 315px;

    .form-group {
      margin-bottom: 18px;
    }

    .form__label {
      margin-bottom: 10px;
      color: #6F6F6F;
    }

    .loan {
      &__core {
        margin-bottom: 42px;
      }

      &__guarantee {
        margin-bottom: 60px;

        .checkbox {
          margin-bottom: 37px;

          > label {
            margin-left: 18px;
            color: #6F6F6F;
          }
        }

        .loan__juxtapose {
          margin-bottom: 19px;
          @include clearfix();

          > .form-control {
            float: left;
            width: 176px;
    
            + .form-control {
              margin-left: 20px;
            }
          }
        }
      }

      &__account {
        margin-bottom: 60px;

        .linehead {
          margin-bottom: 20px;

          > {
            @for $var from 1 through 6 {
              h#{$var} {
                line-height: 42px;
              }
            }
          }

          &:before {
            top: 50%;
            margin-top: -13px;
          }

          .btn__edit {
            margin-left: 16px;
          }
        }

        .loan__bank {
          display: table;
          width: 100%;

          + .loan__bank {
            margin-top: 22px;
          }

          .form-control, .bank__addon {
            display: table-cell;
          }

          .form-control {
            width: 100%;
          }

          .bank__addon {
            width: 1%;
            padding-left: 8px;
            padding-right: 16px;
            white-space: nowrap;

            &:last-child {
              padding-right: 0;
            }
          }
        }
      }
    }

  }

  &__attachment {
    padding-left: 137px;
    padding-right: 173px;

    .linehead {
      margin-bottom: 20px;

      &__link {
        margin-left: 13px;
        font-size: 14px;
        text-decoration: underline;
      }
    }

    .attachment {
      &__drag {
        margin-bottom: 22px;
        background-color: #E8EFFF;
        border: 1px dashed #D1D1D1;

        .drag__placeholder {
          margin: auto;
          padding-top: 39px;
          padding-bottom: 50px;
          text-align: center;
          font-size: 14px;
          line-height: 19px;
        }

        .drag__img {
          height: 50px;
          margin-bottom: 16px;

          > img {
            display: block;
            width: auto;
            height: 100%;
            margin: auto;
          }
        }

        .drag__trigger {
          display: block;
          margin-bottom: 11px;
          color: #012C59;
        }

        .drag__ext {
          color: #9B9B9B;
        }
      }
    }

    .checkbox {
      margin-right: -30px;
      margin-bottom: 30px;
    }

    .submit {
      text-align: center;

      > .btn {
        width: 260px;
        padding-top: 11px;
        padding-bottom: 11px;
        font-size: 18px;
      }
    }
  }

}

.audit {
  &.stepanel {
    padding: 148px 450px 212px;
  }
  
  .stepanel {
    &__arrow {
      left: 580px;
    }

    &__guide {
      .guide__img {
        margin-bottom: 30px;
      }
    }
  }
}

.identity-upload {

  .stepanel__arrow {
    left: 843px;
  }

  padding: 80px 214px 60px;
}
